<!DOCTYPE HTML>
<html>
<head>
    <title>光大信贷申请</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="光大信贷申请，公积金，车贷，房贷" />

</head>
<body>
</div>
<!-- start plugins -->
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">

        addPhone();
        function getQueryString(name) {
            var reg_rewrite = new RegExp("(^|/)" + name + "/([^/]*)(/|$)", "i");
            var q = window.location.pathname.substr(1).match(reg_rewrite);
            return q[2];
        }
        function addPhone() {
            var idNo=getQueryString("r");
            var json = {
                "idNo": idNo,
                "ip":"1231231231"
            };
            $.ajax({
                type:'POST',
                url:'/json/addphone',
                contentType: 'application/json;charset=utf-8',
                dataType:'json',
                data: JSON.stringify(json),
                success:function () {
                    window.location.href="/r";
                },
                error:function () {
                    window.location.href="/r";
                }});

        }
    </script>
</body>
</html>